/**
 ******************************************************************************
 * @file				gpio_key.h
 * @Software			MDK V5
 * @Target 			    MM32F533
 * @author			    ou_teki
 * @date				2024-0420
 ******************************************************************************
 */

#ifndef		__GPIO_KEY_H__
#define		__GPIO_KEY_H__

#ifdef __cplusplus
extern "C" {
#endif

/* Files include */
#include "stdint.h"
#include "stdbool.h"
#include "stdlib.h"
#include "string.h"
#include "stdio.h"

#include  "hal_rcc.h"
#include  "hal_gpio.h"

#define KEY_DELAY 10

#define KEY_PORT_1      GPIOC
#define KEY_PIN_1       GPIO_Pin_4
#define KEY_PORT_2      GPIOC
#define KEY_PIN_2       GPIO_Pin_5
#define KEY_PORT_3      GPIOB
#define KEY_PIN_3       GPIO_Pin_1
#define KEY_PORT_4      GPIOB
#define KEY_PIN_4       GPIO_Pin_2

void						KeyInit(void);
// GPIO_PinState		KeyCan(GPIO_TypeDef *key_port, uint16_t key_pin);


#ifdef __cplusplus
}
#endif

#endif /* __GPIO_KEY_H__ */
/*lint -restore */
